/**
 * 
 */
$(function(){
	$('#borrowInfoTable').bootstrapTable({
        url: '/borrow_info/getBorrowInfo.do',
        queryParams: {
            status: '1',
        },
        pagination: true,
        paginationLoop: false,
        pageNumber: 1,
        pageSize: 10,
        pageList: [10, 15, 20, 50, "all"],
        search: true,
        toolbar: "#userToolbar",
        clickToSelect: true,
        columns: [{
            checkbox: true
        }, {
            field: 'bookName',
            title: '书籍名称',
            halign: 'center',
        }, {
            field: 'number',
            title: '剩余数量',
            halign: 'center',
        },  {
            field: 'createTime',
            title: '操作',
            halign: 'center',
            formatter:function(value,row,inde){
            	if(row.number==0){
            		return "预约";
            	}else if(row.number>0){
            		return "借阅";
            	}
            }
        }],
    });
});